home *** CD-ROM | disk | FTP | other *** search
- CPLXTRIG(3C) Last changed: 3-22-99
-
-
- NNAAMMEE
- ccppllxxttrriigg - Trigonometric and hyperbolic functions for the C++ complex
- library
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ccoommpplleexx..hh>>
-
- ccllaassss ccoommpplleexx {{
-
- ppuubblliicc:: ffrriieenndd ccoommpplleexx ssiinn((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ccooss((ccoommpplleexx));;
-
- ffrriieenndd ccoommpplleexx ssiinnhh((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ccoosshh((ccoommpplleexx));; }};;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems (--oo3322 ABI only)
-
- DDEESSCCRRIIPPTTIIOONN
- NOTE: This man page applies only to the --oo3322 ABI. The MIPSpro
- --nn3322 and --6644 ABIs support the template-based complex class which
- is included in the C++ standard library and is automatically
- loaded by the MIPSpro C++ compiler. The --llmm option must still be
- used to link the math library.
-
- The following trigonometric functions are defined for ccoommpplleexx, where:
- - _x and _y are of type ccoommpplleexx.
-
- _y == ssiinn((_x)) Returns the sine of _x.
-
- _y == ccooss((_x)) Returns the cosine of _x.
-
- _y == ssiinnhh((_x)) Returns the hyperbolic sine of _x.
-
- _y == ccoosshh((_x)) Returns the hyperbolic cosine of _x.
-
- DDIIAAGGNNOOSSTTIICCSS
- If the imaginary part of _x would cause overflow ssiinnhh and ccoosshh return
- ((00,, 00)). When the real part is large enough to cause overflow, ssiinnhh
- and ccoosshh return ((HHUUGGEE,, HHUUGGEE)) if the cosine and sine of the imaginary
- part of _x are non-negative, ((HHUUGGEE,, --HHUUGGEE)) if the cosine is non-
- negative and the sine is less than 0, ((--HHUUGGEE,, HHUUGGEE)) if the sine is
- non-negative and the cosine is less than 0, and ((--HHUUGGEE,, --HHUUGGEE)) if both
- sine and cosine are less than 0. In all these cases, _e_r_r_n_o is set to
- EERRAANNGGEE.
-
- These error-handling procedures may be changed with the function
- ccoommpplleexx__eerrrroorr (ccppllxxeerrrr(3C)).
-
- SSEEEE AALLSSOO
- ccoommpplleexx(3C), ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C)
-
- This man page is available only online.
-